package com.itdao.dp.strategy.account2.holder2;

import com.itdao.dp.strategy.account2.behavior2.ILoginService;
import com.itdao.dp.strategy.account2.dto.LoginDto;
import com.itdao.dp.strategy.account2.dto.RegisterDto;

/**
 * 账户服务类
 */
public abstract class AccountService {
    protected ILoginService loginService;

    public void login(LoginDto loginDto) {
        this.loginService.login(loginDto);
    }

    public void register(RegisterDto registerDto) {
        this.loginService.register(registerDto);
    }

    public void reset() {
        this.loginService.reset();
    }
}
